package com.gopay.common.constants.bank;

import java.io.Serializable;

/**
 * 农行常量类
 * @AbcConstants.java
 * @author LiLiLi
 */
public class AbcConstants implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2426312863371934472L;
	
	/**
	 * 交易请求成功
	 */
	public static final String ABC_RESCODE_SUCCESS = "0000";
	/**
	 * 制单成功
	 */
	public static final String ABC_B2B_ORDERSTATUS_PLACEORDER = "0";
	/**
	 * 复核成功
	 */
	public static final String ABC_B2B_ORDERSTATUS_AUTH = "1";
	/**
	 * 交易成功
	 */
	public static final String ABC_B2B_ORDERSTATUS_SUCCESS = "2";
	/**
	 * 交易失败
	 */
	public static final String ABC_B2B_ORDERSTATUS_FAILURE = "3";
	/**
	 * 驳回交易
	 */
	public static final String ABC_B2B_ORDERSTATUS_REJECT = "4";
	/**
	 * 取消交易
	 */
	public static final String ABC_B2B_ORDERSTATUS_CANCEL = "5";
	/**
	 * 交易无响应
	 */
	public static final String ABC_B2B_ORDERSTATUS_NORES = "9";
	
	/**
	 * 制单成功
	 */
	public static final String ABC_B2B_PLACEORDER_MESSAGE = "制单成功";
	/**
	 * 复核成功
	 */
	public static final String ABC_B2B_AUTH_MESSAGE = "复核成功";
	/**
	 * 交易成功
	 */
	public static final String ABC_B2B_SUCCESS_MESSAGE = "交易成功";
	/**
	 * 交易失败
	 */
	public static final String ABC_B2B_FAILURE_MESSAGE = "交易失败";
	/**
	 * 驳回交易
	 */
	public static final String ABC_B2B_REJECT_MESSAGE = "驳回交易";
	/**
	 * 取消交易
	 */
	public static final String ABC_B2B_CANCEL_MESSAGE = "取消交易";
	/**
	 * 交易无响应
	 */
	public static final String ABC_B2B_NORES_MESSAGE = "交易无响应";
	
	/**
	 * 授权已取消
	 */
	public static final String ABC_ORDERSTATUS_CANCEL = "00";
	/**
	 * 未支付
	 */
	public static final String ABC_ORDERSTATUS_ESTABLISH = "01";
	/**
	 * 无回应
	 */
	public static final String ABC_ORDERSTATUS_CONSUMER_PAID = "02";
	/**
	 * 已请款
	 */
	public static final String ABC_B2C_ORDERSTATUS_PAYMENT_ORDERS = "03";
	/**
	 * 成功
	 */
	public static final String ABC_ORDERSTATUS_SETTLEMENT_ORDER = "04";
	/**
	 * 已退款
	 */
	public static final String ABC_ORDERSTATUS_REFUND = "05";
	/**
	 * 授权确认成功
	 */
	public static final String ABC_ORDERSTATUS_ACCREDIT_SUCCESS = "07";	
	/**
	 * 失败
	 */
	public static final String ABC_ORDERSTATUS_FAILURE = "99";
	
	/**
	 * 授权已取消
	 */
	public static final String ABC_CANCEL_MESSAGE = "授权已取消";
	/**
	 * 未支付
	 */
	public static final String ABC_ESTABLISH_MESSAGE = "未支付";
	/**
	 * 订单无回应
	 */
	public static final String ABC_CONSUMER_PAID_MESSAGE = "订单无回应";
	/**
	 * 订单已请款（支付成功）
	 */
	public static final String ABC_B2C_PAYMENT_ORDERS_MESSAGE = "订单已请款（支付成功）";
	/**
	 * 订单已结算（支付成功）
	 */
	public static final String ABC_SETTLEMENT_ORDER_MESSAGE = "订单已结算（支付成功）";
	/**
	 * 订单已退款
	 */
	public static final String ABC_REFUND_MESSAGE = "订单已退款";
	/**
	 * 订单支付失败
	 */
	public static final String ABC_FAILURE_MESSAGE = "订单支付失败";
	
	/**
	 * Default error return code
	 */
    public static final String DEFAULT_RETURN_CODE = "FFFF";
    
    public static final String DEFAULT_RETURN_MSG = "缺少对应的银行方错误提示";

    /**
     *  农行ERP应答错误报文返回码
     */
    public static final String ABC_ERP_ERR_RES_RESP_CODE = "9999";
    
    /**
     *  农行ERP应答错误报文返回来源
     */
    public static final String ABC_ERP_ERR_RES_RESP_SOURCE = "1";
    
    /**
     *  农行ERP应答错误报文返回码(发起方交易流水号不唯一)
     */
    public static final String ABC_ERP_ERR_RES_RESP_CODE2 = "2043";
    
    /**
     *  农行ERP应答错误报文返回来源(发起方交易流水号不唯一)
     */
    public static final String ABC_ERP_ERR_RES_RESP_SOURCE2 = "3";

}
